home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 2 / Gold Medal Software Volume 2 (Gold Medal) (1994).iso / utils / taskr195.arj / TASKER.DOC < prev    next >
Text File  |  1993-11-04  |  20KB  |  527 lines

  1.                               TASKER ver. 1.95
  2.                  Copyright (c) 1993 SkinnyMan Applications
  3.                             All Rights Reserved
  4.  
  5. FOR A QUICK TEST...
  6.  
  7.    If you want to try tasker without reading this well written and concise
  8.    document follow these few easy steps,  run TASKER /A from the same path
  9.    as the EXE, add a task, set your pc time to about 10 seconds prior and
  10.    run TASKER.  After that, do the same only try the /redir option
  11.    (TASKER /redir).  Look at the REDIR.TXT file which contains you screen
  12.    output while your task executed.  Go ahead, put in any command, program
  13.    or batch file (for batch files please use 'call'.  ex.  CALL BATCH1.BAT).
  14.    Give it a good work out.  Then check out the rest of this doc for all
  15.    it's options and features.
  16.  
  17.    This is an evaluation copy only.  If you continue to use this utility
  18.    beyond 30 days please register.  By registering you receive free upgrades,
  19.    support, the ability to suggest enhancements to future versions, etc...
  20.  
  21.    SUPPORT and REGISTRATION INFO is at the end of this doc for easy access.
  22.    Please don't hesitate to contact me for any reason during the evaluation
  23.    period.
  24.    
  25.                    SkinnyMan
  26.                                   - I -
  27.  
  28. WHAT IS TASKER?
  29.  
  30.    Tasker is an unattended program dispatcher.  It will execute any
  31.    program and parameters, or command line input 
  32.    (Copy, dir, ren, md, del *.*, etc.. ) at any prescheduled time.  
  33.  
  34.    This is great to load on unattended pc's for executing backups,
  35.    production jobs, batch files, etc...
  36.  
  37. TASKER FEATURES:
  38.    Jobs can be scheduled to run:
  39.    -   Every day.
  40.    -   Every business day (Mon - Fri).
  41.    -   Every day for a specific month.
  42.    -   On a specific day of the week every month.
  43.    -   On a specific day of the week for a specific month.
  44.  
  45.    Tasker has the flexibility of using any specified taskfile.
  46.    -   One way to use a specific taskfile is run Tasker from the same
  47.        directory as your taskfile (provided its name is TASKFILE.TXT).
  48.    -   You could also use the /t option and give tasker a full path and 
  49.        taskfile name (whatever name you choose).
  50.    -   If neither option is used, and TASKER.EXE is in your PATH, it will
  51.        use the default taskfile (same directory as tasker.exe)
  52.    -   This taskfile flexibility makes Tasker multi-user (LAN) compatible.
  53.      
  54.       For example: 
  55.  
  56.       If the tasker.exe file resides on a LAN everyone can use the same .EXE
  57.       (Multi-User Registration Available) and be able to specify their own
  58.       personal taskfile.
  59.  
  60.                                   - 1 -
  61.      LAN administrators can take advantage of the default taskfile feature
  62.       to have all LAN users use the same taskfile to execute LAN utilites 
  63.       off-hours so when they arrive their pc is ready for the day.  Have
  64.       users load Tasker before they leave for the day to:
  65.       -   Run virus scanning software.
  66.       -   Disk cleanup utilities.
  67.       -   LAN utilities.
  68.  
  69.  
  70.    Comprehensive and informative logging feature.
  71.    -  A log file keeps track of tasker activity, errors and other
  72.       information.
  73.    -  It will give you the status of the spawn, as well as, the return
  74.       status of most programs so you can see if your program had trouble.
  75.    -  Your logfile will reside in the same directory as your taskfile
  76.       by default.
  77.    -  You can also specify your own log file and location using /t.  This
  78.       is great for LAN user's so they can have their own log file.
  79.  
  80.  
  81.  
  82.    Screen redirection to a text file while tasks are executing.
  83.    -   By using the /redir option you can redirect all your screen output
  84.        to a flat file so you can see exactly how your task executed.  No
  85.        need to spend time wondering how a task performed while you were
  86.        away.
  87.    -   Save task activity for tracking purposes or see if any of your
  88.        programs generated any problems or errors.
  89.    -   The redirection file will alway reside in the same directory as
  90.        the taskfile.  This could be useful for LAN administrators to be
  91.        able to see exactly how each user's tasks performed.
  92.    
  93.    Does not necessitate a 'command /c' when executing DOS environment 
  94.    functinos such as: Copy, dir, ren, md, del *.*, etc...
  95.  
  96.    Swaps TASKER.EXE out of your conventional memory when your tasks execute.
  97.    -  TASKER.EXE will swap itself to EMS, if present.  If no EMS is present
  98.       it swaps TASKER to disk, thus freeing virtually all conventional memory 
  99.       TASKER was using so your tasks can run optimally.
  100.  
  101.  
  102.                                   - 2 -
  103.    No Schedule Conflicts
  104.    -   Tasker will execute ALL jobs scheduled even if one runs beyond the
  105.        execution time of the next scheduled task.  It will simply run the
  106.        next task immediately upon completion of the previous one.
  107.    -   It will still finish all scheduled tasks if one happens to run beyond
  108.        midnight.  Tasker will simply execute the remaining tasks in succesion.
  109.    -   Tasker will not miss early morning tasks should a task from the
  110.        previous night run beyond a scheduled job for the next day.
  111.        
  112.        Below is an explanation of the 'No Schedule Conflicts' feature:
  113.  
  114.        Example schedule for Tuesday and Wednesday morning:
  115.          Task 1 is scheduled for 4 pm on Tuesday.
  116.          Task 2 is scheduled for 4:15 pm.
  117.          Task 3 is scheduled for 11:30 pm.
  118.          Task 4 is scheduled for 11:45 pm.
  119.          Task 1 for Wednesday is scheduled for 1 am.
  120.          
  121.        Execution:
  122.          Task 1 executes at 4 pm but runs until 4:30.
  123.             Tasker will detect that Task 2's execution time has
  124.             been surpassed and immediately execute it.
  125.  
  126.          Task 3 executes at 11:30 but runs until 2am Wednesday morning.
  127.  
  128.             Upon the completion of Task 3, Tasker will detect that it is 
  129.             past midnight and immediately execute all remaining tasks for 
  130.             Tuesday in succession.
  131.             
  132.             Tasker, upon loading the tasks for Wednesday, will detect that
  133.             the previous night's Tasks have run over the execution time of
  134.             Task 1 and immediately execute it (and any other tasks that have
  135.             been surpassed).
  136.  
  137.  
  138.   
  139. REQUIREMENTS:
  140.  
  141.   Tasker will run on any AT compatible PC running DOS 3.3 & higher.  (an OS/2
  142.   version may soon follow)
  143.  
  144.   You can run tasker from a floppy (although loading will be slower) or
  145.   your hard disk.
  146.  
  147.   Tasker should be in your DOS PATH in order to utilize more of it's
  148.   features.
  149.  
  150.   Tasker needs about 100K of ram when its waiting to run or waiting for 
  151.   midnight.  Don't panic though because Tasker swaps itself out of RAM
  152.   when executing it's tasks.
  153.  
  154.   For windows, if you have a nominal amount of memory this should not be
  155.   a problem.
  156.  
  157.  
  158.                                   - 3 -
  159.  
  160. BASIC FLOW:
  161.  
  162.    Upon starting Tasker it will check the taskfile for any tasks that
  163.    might be scheduled for the rest of that day.  If any tasks are
  164.    present it will execute each task at their specified time until all
  165.    tasks have been executed.  It will then wait until midnight to read
  166.    the taskfile again and start the process over.
  167.  
  168.  
  169. O  Choosing your taskfiles:
  170.  
  171.       Most users will have just one taskfile (default) but for those who need
  172.       more than one taskfile, this section is for you.
  173.  
  174.       When you type TASKER (without the /t) Tasker will first look for it's
  175.       TASKFILE.TXT in the current directory.  If not present Tasker will 
  176.       look for the default taskfile.txt (same directory as TASKER.EXE).  If
  177.       that is also not present you will be informed that there are no tasks
  178.       present and to add tasks.
  179.  
  180.       You can specify your own taskfile name and location by using the /t
  181.       switch.  Example:
  182.  
  183.             TASKER /T C:\MYDIR\JIMSTASKS.TXT
  184.  
  185.       You can just use /T without the path/filename.  Tasker will prompt you
  186.       for a path/filename for your taskfile and log file (this is how you
  187.       can specify a log file in a different location than your taskfile).
  188.  
  189.       The /T switch can be used in conjuction with the /a, /d and /r options
  190.       as long as the option comes before /T.  Thusly:
  191.       
  192.             TASKER /A /T [PATH/FILENAME]
  193.  
  194.  
  195. O  Entering Tasks:
  196.  
  197.    -  To enter tasks type:
  198.  
  199.          TASKER /A
  200.  
  201.       Caution: If you have more than one taskfile be sure you are using 
  202.                the right one.  See 'Choosing your taskfiles'.
  203.  
  204.                                   - 4 -
  205.  
  206. O  Creating Tasks:
  207.  
  208.    -  To create a default taskfile (TASKFILE.TXT) type:
  209.  
  210.          TASKER /A  
  211.  
  212.       with no parameters.
  213.  
  214.    -  To create a taskfile in another directory use the /t option.
  215.  
  216.          TASKER /T C:\MYDIR\TASKFILE.TXT  
  217.  
  218.       Note:  keeping the filename TASKFILE.TXT will allow you to use this
  219.              taskfile just by typing TASKER from the same directory.  If the
  220.              filename is other than TASKFILE.TXT you will need to use 
  221.              the /t switch.
  222.  
  223.  
  224. O  Removing Tasks:
  225.  
  226.    To remove tasks type:
  227.  
  228.       TASKER /R 
  229.  
  230.    You will be prompted to 'Enter the Task Number to Remove'.  Type the
  231.    desired task number and Tasker will display the task along with an 
  232.    'Are You Sure' screen.  Your task will then be removed.  If you want to
  233.    delete all tasks just delete the taskfile and start over with a Tasker /A.
  234.  
  235.  
  236.    Note: If you have more tasks than can fit on your screen you will be
  237.          prompted to 'Continue Viewing' after the first screen.  If
  238.          you know what task number you want to remove, answer 'N' and the
  239.          removal steps will continue.
  240.       
  241.   Caution: If you have more than one taskfile be sure you are using 
  242.            the right one.  See 'Choosing your taskfiles'.
  243.  
  244.  
  245. O  Display your tasks for viewing:
  246.  
  247.    To display your tasks type:
  248.  
  249.       TASKER /D
  250.  
  251.    Note: If you have more tasks than can fit on your screen you will be
  252.          prompted to 'Continue Viewing' after the first screen full.
  253.  
  254.    Caution: If you have more than one taskfile be sure you are using 
  255.             the right one.  See 'Choosing your taskfiles'.
  256.  
  257.                                   - 5 -
  258.  
  259. O  Activating screen redirection to a flat file.
  260.  
  261.    To activate screen redirection type:
  262.  
  263.       TASKER [/t [path/filename] ] /redir
  264.  
  265.    Note: The /redir switch MUST be the last parameter.  Your redirection
  266.          file will always reside in the same directory as your selected
  267.          taskfile.  (The next version will be more flexable with the 
  268.          location of the REDIR.TXT file.)
  269.  
  270.  
  271. O  To use Tasker in a Windows environment:
  272.  
  273.    Add Tasks to your default taskfile using DOS then edit the PIF file for
  274.    the location of TASKER.EXE and any parameters (/t or /redir).  Tasker
  275.    will then function in the background while you do other things.
  276.  
  277.    You can load tasker (minimized) automatically every time you run windows.
  278.    To do this, add TASKER.PIF to the 'load=' command in your WIN.INI file
  279.    (first few lines).  Now Tasker will load up minimized and will execute
  280.    your tasks in the background.
  281.  
  282.    Note: Tasker is not a windows utility but by using the pif it can run
  283.    in a Windows environment.
  284.  
  285. FILE NAMES & LOCATIONS:
  286.  
  287.    File:                  File Name:           Location:
  288.  
  289.    Default Taskfile:          TASKFILE.TXT \ _ Same directory as 
  290.    Default Log file:          TASKLOG.TXT  /   TASKER.EXE.
  291.  
  292.    Taskfiles in other
  293.    locations:                 TASKFILE.TXT \   
  294.    Log files in other                        - Your choice of directories
  295.    locations:                 TASKLOG.TXT  /
  296.  
  297.  
  298.    Taskfiles by a name
  299.    other than TASKFILE.TXT    Your choice \         
  300.    Log files by a name                      -  Your choice of directories
  301.    other than LOGFILE.TXT     Your choice /
  302.  
  303.    Screen Redirection file:   REDIR.TXT         Same directory as your
  304.                                                 selected taskfile.
  305.  
  306.                                   - 6 -
  307.  
  308. HINTS:
  309.  
  310. O  If you plan on using only one taskfile I suggest you stick to the
  311.    default location (create it just by typing TASKER /A with no parms).
  312.    This way you will not have to concern yourself with /t.  For one 
  313.    taskfile this is the easiest way.
  314.  
  315. O  If you are going to use your own taskfile name you must use the /t switch.
  316.  
  317. O  Have TASKER.EXE in your path.  If you are unsure on how to do this look
  318.    up 'PATH' in your DOS manual.
  319.  
  320. O  If you are calling a batch file, use the DOS 'call' function in your
  321.    task, (ex. CALL TEST.BAT).  Tasker will act unpredictable if 'call' is
  322.    not used for batch files.
  323.  
  324. O  Command Line Piping functions do not work with Tasker unless called from
  325.    a batch file.  For instance, if you want to log in to a network and
  326.    pipe in a password you can 'call' a small batch file to do this.
  327.  
  328.       Example:  You want to login to a network and execute some commands.
  329.  
  330.             Task1:      call log.bat
  331.             Task2:      normal command1
  332.             Task3:      normal command2
  333.             Task4:      normal command3
  334.  
  335.       log.bat:
  336.             REM load Lan drivers if not already loaded
  337.             F:LOGIN jimmy <c:\mypass.txt
  338.  
  339.  
  340. O  You can edit your taskfile using a standard editor although it is quick
  341.    and easy to remove the task and re-add it using Tasker.  If you edit be
  342.    careful, if you misplace even one character other than the task, Tasker
  343.    will be unforgiving and produce an "Invalid Data in Taskfile" message or
  344.    otherwise perform unpredictably.  I was able to edit mine using Brief as
  345.    my editor and had no problems. I cannot guarantee what other editors
  346.    might do to the taskfile. 
  347.  
  348.    I realize I do not have a task edit feature yet, this is why I have
  349.    tasker write your tasks out to a flat file (instead of using encryption)
  350.    and allow minor editing.  An edit feature should be in the next version.
  351.  
  352.    Here are some editing tips:
  353.  
  354.    -  Make sure your last character in the taskfile is the last charactor
  355.       of your last task.  Do NOT add a carrage return.  Again, your file
  356.       should end at the end of your last task, not on the next (blank) line.
  357.  
  358.    -  It is advised to make a backup of your taskfile before you edit it.
  359.  
  360.  
  361.                                   - 7 -
  362.  
  363.    o  Here is how each line of the taskfile works:
  364.  
  365.       ########Task
  366.  
  367.       - The first 2 numbers represent the month (99 means every month).
  368.         The third number is the day of week (0 = Sunday, 1 = Monday, etc...)
  369.         9 means everyday.
  370.       - The next (fourth) number is a weekend switch, 0 if weekends included,
  371.         1 if just every business day (this number is ignored unless everyday
  372.         was selected)
  373.       - The next 4 numbers represent the time (hours and minutes, military time).
  374.       - The remaining characters is your task.
  375.  
  376.         Examples:  99500500call c:\jimslog.bat (every month, every Friday at
  377.                                                 5am call my login batch file)
  378.  
  379.                    99910700Virscan c: /a /v    (every month, every business
  380.                                                 day at 7am run a virus
  381.                                                 scanner with parms)
  382.  
  383.  
  384. NOTES:
  385.  
  386. O  This program shells out to execute your tasks.  You will see in the logs
  387.    and on screen a Spawn Status (ex. "Spawn Successful").  When a spawn is
  388.    successful this does not mean that your program was.  Tasker is just
  389.    letting you know it successfully spawned another command.com for your
  390.    program.  Please verify each of your program's success.
  391.  
  392. O  Be advised that if you decide to use tasker in a Windows environment,
  393.    Tasker does use approximately 90K of memory.  If you have a sufficient
  394.    amount of memory for windows than this should not effect the system. A
  395.    reminder that when tasker executes it swaps itself out of memory.
  396.       
  397. O  Because DOS environment calls (dir, ren, copy, etc...) normally would
  398.    require a 'command /c' for the spawn function and program files do not,
  399.    I have provided a feature so you would not have to decide if a
  400.    'command /c' is needed or not.  Tasker will first attempt to execute 
  401.    them normally, if this fails it will precede the command with a
  402.    'command /c' which will then function.  If your program returns an 
  403.    error, it will attempt to re-execute it with a 'command /c'
  404.    (transparent).  So, if you notice in your redir.txt file and log file
  405.    that it executed twice, this is the reason.
  406.  
  407.       For example if you tried to execute "TYPE C:\AUTOEXEC.BAT" and the
  408.       file does not exist, tasker will return the DOS error but it will
  409.       then try and run "command /cTYPE C:\AUTOEXEC.BAT" which will succeed.
  410.  
  411.      
  412.  
  413.                                   - 8 -
  414.  
  415.       
  416. O  If you have one of your tasks logging in or out of a Novell network, be
  417.    advised of the path errors you might receive depending on the following
  418.    scenarios:
  419.  
  420.       If you are already logged in and have search maps, and then you login
  421.       again through one of your tasks, Novell will append any search maps 
  422.       in your login script to your path (doubling your search maps in your
  423.       path) then after you logout, Novell strips only one set of search maps
  424.       off your path but your original set will still exist although you
  425.       will be logged out.  You will receive "invalid drive in search path"
  426.       errors.  Be careful.  Be sure you are logged out before any of your
  427.       tasks log you in.  Also, it is easiest to perform multiple network
  428.       tasks within a batch file.  If you login in one task your path and
  429.       environment can become unreliable.  A Novell Network is the only one
  430.       I have access to and was able to test.  Because it is a dos bases app
  431.       it would perform on other dos type networks just as well.
  432.  
  433.  
  434. THANKS:
  435.  
  436.    I would like to thank Ira Ashkenes (IJ Software) for all his insight
  437.    and support in creating this utility.  Also, thanks to F. PIETTE for
  438.    his ideas in screen redirection.  
  439.  
  440. SUPPORT:
  441.  
  442.    If you have any questions or problems do not hesitate to contact me at
  443.  
  444.        703-368-8990 (Virginia).
  445.        
  446.    If there's no answer leave a message and I will promptly return your call.
  447.  
  448.    I can also be reached electronically on CompuServe.  My mail address is:
  449.    
  450.    72713,713.   
  451.  
  452.  
  453. REGISTRATION:
  454.  
  455.   To register you can:
  456.   
  457.  
  458.   A.  Print the TASKER.REG text file, fill it out and mail it along with
  459.       the proper registration fee to the address shown on the form.
  460.   
  461.   B.  If you have a CompuServe account, log on and type GO SWREG and
  462.       refer to reg #1301.  CompuServe will add the registration fee right
  463.       onto your bill.  I will then be notified and send you your
  464.       registration info through Email.
  465.  
  466.  
  467. LEGAL MUMBO JUMBO
  468.  
  469.   These documents and all referenced and related program files are
  470.   copyrighted by SkinnyMan Applications and is protected under the 
  471.   copyright laws.
  472.  
  473.    
  474.   Thank you for trying Tasker.  
  475.  
  476.   JIM (SkinnyMan Applications)
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.                                   - 9 -
  486.  
  487. ALSO:
  488.  
  489.   Check out ConEd in CompuServe's MSDOS and IBMSYS forums.  This is the
  490.   best system configuration utility around.  Allows you to easily change
  491.   your CONFIG.SYS & AUTOEXEC.BAT at boot time.  Some of its features include:
  492.  
  493.   -  Virtually unlimited number of configurations.
  494.   -  Delay feature for unattended system boots,
  495.   -  Warm/cold/alternate reboot methods.
  496.   -  Menu or command line reboot selection.
  497.   -  Shell to the editor of your choice.
  498.   -  Easy to use yet very powerful.
  499.   
  500.   This is both the novice and power users system configuration tool.
  501.  
  502.   ConEd Configuration Editor by IJ Software.
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.                                   - 10 -
  526.  
  527.